package com.fellw.mango.real_person.authentication.api.service;


import com.fellw.mango.real_person.authentication.api.IDFaceIdentifyModel;
import com.fellw.mango.real_person.authentication.api.IDVerifiedOCRDto;
import com.fellw.mango.real_person.authentication.api.IDVerifiedOCRResult;

/**
 * User real name authentication
 *
 * @author fate
 * @version 1.0.0
 * @since 1.0.0
 */
public interface MemberVerifiedAdapter {

    /**
     * Is ID verification successful
     *
     * @param memberId user
     * @return is ok
     */
    boolean idVerifyOK(Object memberId);


    /**
     * Obtain the latest ID information
     *
     * @param memberId user
     * @param source   id source
     * @return info
     */
    IDVerifiedOCRResult getUserIdCard(Object memberId, Integer source);

    /**
     * Obtain the latest ID information
     *
     * @param memberId user
     * @return info
     */
    IDVerifiedOCRResult getUserIdPassLastNew(Object memberId);


    /**
     * 获取用户面部认证信息
     *
     * @param memberId 用户标识
     * @return 面部认证信息
     */
    IDFaceIdentifyModel getIDFaceIdentify(Object memberId);

    /**
     * Obtain the latest ID information
     *
     * @param memberId user
     * @return info
     */
    IDVerifiedOCRDto getUserIdDtoPassLastNew(Long memberId);
}
